package com.swak.sentinel.log;

import com.alibaba.csp.sentinel.log.LogTarget;
import com.alibaba.csp.sentinel.log.Logger;

/**
 * 定义 logger
 * 
 * @author DELL
 */
@LogTarget
public class SentineLogger implements Logger {

	private org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(SentineLogger.class);

	@Override
	public void info(String format, Object... arguments) {
		log.info(format, arguments);
	}

	@Override
	public void info(String msg, Throwable e) {
		log.info(msg, e);
	}

	@Override
	public void warn(String format, Object... arguments) {
		log.warn(format, arguments);
	}

	@Override
	public void warn(String msg, Throwable e) {
		log.warn(msg, e);
	}

	@Override
	public void trace(String format, Object... arguments) {
		log.trace(format, arguments);
	}

	@Override
	public void trace(String msg, Throwable e) {
		log.trace(msg, e);
	}

	@Override
	public void debug(String format, Object... arguments) {
		log.trace(format, arguments);
	}

	@Override
	public void debug(String msg, Throwable e) {
		log.trace(msg, e);
	}

	@Override
	public void error(String format, Object... arguments) {
		log.trace(format, arguments);
	}

	@Override
	public void error(String msg, Throwable e) {
		log.trace(msg, e);
	}
}
